import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import copyPlugin from 'rollup-plugin-copy'



const path = require('path')
const formatOut = (mode) => {
  switch(mode){
    case "qf":return "/qf";
    default:;
  }
  return ""
}
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  build:{
    rollupOptions:{
      plugins: [
        copyPlugin({
          targets: [
            {
              src: './src/static', dest: './dist/dev/test'
            }
          ],
          verbose: true,

        })
      ]
    }
  }
  
});
